package com.cltech.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * Created by Administrator on 2019/4/8.
 */
@Getter
@Setter
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SysRoleDto {
    private String id;
    @NotBlank(message="角色编码不能为空")
    @Size(max = 255, message = "角色编码最大允许输入255个字符")
    private String roleCode;
    @NotBlank(message="角色名称不能为空")
    @Size(max = 255, message = "角色名称最大允许输入255个字符")
    private String name;
    @Size(max = 2048, message = "角色描述最大允许输入2048个字符")
    private String description;
}
